home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / gdiff-2.2 / Makefile < prev    next >
Makefile  |  1995-05-03  |  5KB  |  155 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for GNU DIFF
  3. # Copyright (C) 1988, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
  4. #
  5. # This file is part of GNU DIFF.
  6. #
  7. # GNU DIFF is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2, or (at your option)
  10. # any later version.
  11. # GNU DIFF is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15. # You should have received a copy of the GNU General Public License
  16. # along with GNU DIFF; see the file COPYING.  If not, write to
  17. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. #### Start of system configuration section. ####
  20.  
  21. srcdir = .
  22. VPATH = .
  23.  
  24. CC = cc
  25. INSTALL = cp
  26. INSTALL_PROGRAM = $(INSTALL)
  27. INSTALL_DATA = $(INSTALL)
  28. MAKEINFO = makeinfo
  29.  
  30. # Things you might add to DEFS:
  31. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  32. # -DHAVE_UNISTD_H    If you have unistd.h.
  33. # -DHAVE_STRING_H    If you don't have ANSI C headers but have string.h.
  34. # -DDIRENT        If you have dirent.h.
  35. # -DSYSNDIR        Old Xenix systems (sys/ndir.h).
  36. # -DSYSDIR        Old BSD systems (sys/dir.h).
  37. # -DNDIR        Old System V systems (ndir.h).
  38. # -DHAVE_VFORK_H    If you have vfork and it needs vfork.h.
  39. # -DHAVE_DUP2        If you have dup2 system call.
  40. # -DHAVE_WAITPID    If you have waitpid system call.
  41. # -DHAVE_ST_BLKSIZE    If your struct stat has an st_blksize member.
  42. # -DHAVE_STRERROR    If you have strerror function.
  43. # -DHAVE_ALLOCA_H    If you have a working alloca.h.
  44.  
  45. DEFS =  -DDIRENT=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_DUP2=1 -DHAVE_MEMCHR=1 -DHAVE_STRERROR=1 -DHAVE_WAITPID=1 -DHAVE_FCNTL_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_TIME_H=1 -Dvfork=fork
  46.  
  47. CFLAGS = -g
  48. LDFLAGS = -g
  49. LIBS = 
  50.  
  51. # Some System V machines do not come with libPW.
  52. # If this is true for you, use the GNU alloca.o here.
  53. ALLOCA = alloca.o
  54.  
  55. prefix = /usr/local
  56. exec_prefix = $(prefix)
  57.  
  58. # Prefix for each installed program, normally empty or `g'.
  59. binprefix = 
  60.  
  61. bindir = $(exec_prefix)/bin
  62.  
  63. infodir = $(prefix)/info
  64.  
  65. #### End of system configuration section. ####
  66.  
  67. SHELL = /bin/sh
  68.  
  69. # The source files for all of the programs.
  70. srcs=diff.c analyze.c io.c context.c ed.c normal.c ifdef.c util.c dir.c \
  71.     version.c diff.h regex.c regex.h side.c system.h \
  72.     diff3.c sdiff.c cmp.c error.c xmalloc.c getopt.c getopt1.c getopt.h \
  73.     fnmatch.c fnmatch.h alloca.c
  74. # Object files for diff only.
  75. objs=diff.o analyze.o io.o context.o \
  76.      ed.o normal.o util.o dir.o fnmatch.o \
  77.      regex.o side.o ifdef.o version.o \
  78.      getopt.o getopt1.o $(ALLOCA)
  79. distfiles = $(srcs) README INSTALL NEWS diagmeet.note Makefile.in configure \
  80.     configure.in COPYING ChangeLog diff.texi diff.info* texinfo.tex
  81.  
  82. all: diff diff3 sdiff cmp diff.info
  83.  
  84. .c.o:
  85.     $(CC) -c $(DEFS) $(CPPFLAGS) -I. -I$(srcdir) $(CFLAGS) $<
  86.  
  87. diff: $(objs)
  88.     $(CC) -o $@ $(LDFLAGS) $(objs) $(LIBS)
  89.  
  90. diff3: diff3.o getopt.o getopt1.o version.o $(ALLOCA)
  91.     $(CC) -o $@ $(LDFLAGS) diff3.o getopt.o getopt1.o version.o $(ALLOCA) $(LIBS)
  92.  
  93. sdiff: sdiff.o getopt.o getopt1.o version.o $(ALLOCA)
  94.     $(CC) -o $@ $(LDFLAGS) sdiff.o getopt.o getopt1.o version.o $(ALLOCA) $(LIBS)
  95.  
  96. cmp: cmp.o getopt.o getopt1.o error.o xmalloc.o $(ALLOCA)
  97.     $(CC) -o $@ $(LDFLAGS) cmp.o getopt.o getopt1.o error.o xmalloc.o $(ALLOCA) $(LIBS)
  98.  
  99. diff.info: diff.texi
  100.     $(MAKEINFO) $(srcdir)/diff.texi
  101.  
  102. $(objs): diff.h system.h
  103. cmp.o diff3.o sdiff.o: system.h
  104. context.o diff.o regex.o: regex.h
  105. cmp.o diff.o diff3.o sdiff.o getopt.o getopt1.o: getopt.h
  106. diff.o fnmatch.o: fnmatch.h
  107.  
  108. diff3.o: diff3.c
  109.     $(CC) -c $(DEFS) $(CPPFLAGS) $(CFLAGS) -DDIFF_PROGRAM=\"$(bindir)/$(binprefix)diff\" $(srcdir)/diff3.c
  110.  
  111. sdiff.o: sdiff.c
  112.     $(CC) -c $(DEFS) $(CPPFLAGS) $(CFLAGS) -DDIFF_PROGRAM=\"$(bindir)/$(binprefix)diff\" $(srcdir)/sdiff.c
  113.  
  114. TAGS: $(srcs)
  115.     etags $(srcs)
  116.  
  117. clean:
  118.     rm -f *.o diff diff3 sdiff cmp core
  119.  
  120. mostlyclean: clean
  121.  
  122. distclean: clean
  123.     rm -f Makefile config.status
  124.  
  125. realclean: distclean
  126.     rm -f TAGS *.info*
  127.  
  128. install: all
  129.     for p in diff diff3 sdiff cmp; \
  130.     do $(INSTALL_PROGRAM) $$p $(bindir)/$(binprefix)$$p; done
  131.     cd $(srcdir); for f in diff.info*; \
  132.     do $(INSTALL_DATA) $$f $(infodir)/$$f; done
  133.  
  134. uninstall:
  135.     for p in diff diff3 sdiff cmp; \
  136.     do rm -f $(bindir)/$(binprefix)$$p; done
  137.     rm -f $(infodir)/diff.info*
  138.  
  139. dist: $(distfiles)
  140.     echo diff-`sed -e '/version_string/!d' -e 's/[^0-9]*\([0-9a-z.]*\).*/\1/' -e q version.c` > .fname
  141.     rm -rf `cat .fname`
  142.     mkdir `cat .fname`
  143.     -ln $(distfiles) `cat .fname`
  144.     for file in $(distfiles); do \
  145.       if [ ! -r `cat .fname`/$$file ]; then cp -p $$file `cat .fname`; fi \
  146.     done
  147.     tar chZf `cat .fname`.tar.Z `cat .fname`
  148.     tar chf - `cat .fname` | gzip > `cat .fname`.tar.z
  149.     rm -rf `cat .fname` .fname
  150.  
  151. # Prevent GNU make v3 from overflowing arg limit on SysV.
  152. .NOEXPORT:
  153.